package com.example.designpatterns.model.template.callback;

/**
 * @author yanyun zhu
 * @version 1.0
 * @date 2022/1/4 17:03
 */
public class AClass {

    public static void main(String[] args) {
        BClass b = new BClass();
        b.process(new ICallback() { //回调对象
            @Override
            public void methodToCallback() {
                System.out.println("Call back me.");
            }
        });
    }
}
